package bill.java.interview.salesforce;

public class GeneralTreeNode <T>{
	private T element;
	private GeneralTreeNode<T> parent;
	private GeneralTreeNode<T> leftChild;
	private GeneralTreeNode<T> rightSibling;
	
	public GeneralTreeNode(T t){
		this.element = t;
	}
	
	public T getElement() {
		return element;
	}
	public void setElement(T element) {
		this.element = element;
	}
	public GeneralTreeNode<T> getParent() {
		return parent;
	}
	public void setParent(GeneralTreeNode<T> parent) {
		this.parent = parent;
	}
	public GeneralTreeNode<T> getLeftChild() {
		return leftChild;
	}
	public void setLeftChild(GeneralTreeNode<T> leftChild) {
		this.leftChild = leftChild;
	}
	public GeneralTreeNode<T> getRightSibling() {
		return rightSibling;
	}
	public void setRightSibling(GeneralTreeNode<T> rightSibling) {
		this.rightSibling = rightSibling;
	}
}
